package com.test.PizzaFactory;

/**
 * ${DESCRIPTION}
 *
 * @author muxiaoyu
 * @create 2017/05/24 10:46
 **/
public class ChicagoStylePizzaStore extends PizzaStore {
    @Override
    Pizza createPizza(String type) {
        Pizza pizza = null;
        if (type.equals("cheese")) {
            pizza = new ChicagoStyleCheesePizza();
        } else if (type.equals("veggie")) {
            pizza = new ChicagoStyleVeggiePizza();
        }
        return pizza;
    }
}
